package com.dingreading.cloud.soms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2023-11-22
 */
@Data
@Table(value = "borrow_book_log")
public class BorrowBookLog implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;


    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private Date editTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date returnTime;

    /**
     * 公司uid
     */
    @ApiModelProperty(value = "公司uid")
    private String corpUid;

    /**
     * 门店uid
     */
    @ApiModelProperty(value = "门店uid")
    private String storeUid;

    /**
     * 借书人uid
     */
    @ApiModelProperty(value = "借书人uid")
    private String memberUid;

    /**
     * 借阅id
     */
    @ApiModelProperty(value = "借阅id")
    private Long borrowBookId;

    /**
     * 系统书id
     */
    @ApiModelProperty(value = "书id")
    private Long bookId;

    /**
     * 门店书id
     */
    @ApiModelProperty(value = "门店书id")
    private Long storeBookId;

    /**
     * 书名
     */
    @ApiModelProperty(value = "书名")
    private String name;

    /**
     * 出版社
     */
    @ApiModelProperty(value = "出版社")
    private String press;

    /**
     * 书价
     */
    @ApiModelProperty(value = "书价")
    private Double price;

    /**
     * 书封面
     */
    @ApiModelProperty(value = "书封面")
    private String img;

    /**
     * isbn
     */
    @ApiModelProperty(value = "isbn")
    private String isbn;

    /**
     * 借阅状态 1.借阅中 2.已还书
     */
    @ApiModelProperty(value = "借阅状态 1.借阅中 2.已还书")
    private Integer status;

    /**
     * 还书操作人uid
     */
    @ApiModelProperty(value = "还书操作人uid")
    private String returnStaffUid;

    /**
     * 还书操作人名
     */
    @ApiModelProperty(value = "还书操作人名")
    private String returnStaffName;

}
